package com.netflix.discovery;

import com.netflix.util.DnsResolver;

import javax.annotation.Nullable;
import java.util.List;

public class DnsServiceImpl implements DnsService {

    @Override
    public String resolveIp(String hostName) {
        return DnsResolver.resolve(hostName);
    }

    @Nullable
    @Override
    public List<String> resolveARecord(String rootDomainName) {
        return DnsResolver.resolveARecord(rootDomainName);
    }
}
